using SS;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace TVSGPP.func
{
	public class frmInputMoreInfo : Form
	{
		private IContainer components = null;
		private Label label1;
		private Label label2;
		private Label label3;
		private Label label4;
		private Button btnSave;
		private Button btnClose;
		public TextBox txtRegisters;
		public TextBox txtControl;
		public ComboBox cbbBisMake;
		public ComboBox cbbBisImport;
		private Func objFunc = new Func();
		public bool hasModife = false;
		protected override void Dispose(bool disposing)
		{
			if (disposing && this.components != null)
			{
				this.components.Dispose();
			}
			base.Dispose(disposing);
		}
		private void InitializeComponent()
		{
			this.label1 = new Label();
			this.txtRegisters = new TextBox();
			this.txtControl = new TextBox();
			this.label2 = new Label();
			this.label3 = new Label();
			this.cbbBisMake = new ComboBox();
			this.cbbBisImport = new ComboBox();
			this.label4 = new Label();
			this.btnSave = new Button();
			this.btnClose = new Button();
			base.SuspendLayout();
			this.label1.BackColor = SystemColors.ControlLight;
			this.label1.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.label1.Location = new Point(6, 6);
			this.label1.Name = "label1";
			this.label1.Size = new Size(208, 20);
			this.label1.TabIndex = 0;
			this.label1.Text = "Sổ đăng ký";
			this.label1.TextAlign = ContentAlignment.MiddleCenter;
			this.txtRegisters.Location = new Point(6, 27);
			this.txtRegisters.Name = "txtRegisters";
			this.txtRegisters.Size = new Size(208, 21);
			this.txtRegisters.TabIndex = 0;
			this.txtControl.Location = new Point(223, 27);
			this.txtControl.Name = "txtControl";
			this.txtControl.Size = new Size(209, 21);
			this.txtControl.TabIndex = 1;
			this.label2.BackColor = SystemColors.ControlLight;
			this.label2.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.label2.Location = new Point(223, 6);
			this.label2.Name = "label2";
			this.label2.Size = new Size(209, 20);
			this.label2.TabIndex = 2;
			this.label2.Text = "Sổ kiểm soát";
			this.label2.TextAlign = ContentAlignment.MiddleCenter;
			this.label3.BackColor = SystemColors.ControlLight;
			this.label3.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.label3.Location = new Point(6, 56);
			this.label3.Name = "label3";
			this.label3.Size = new Size(426, 20);
			this.label3.TabIndex = 4;
			this.label3.Text = "Đơn vị sản xuất";
			this.label3.TextAlign = ContentAlignment.MiddleCenter;
			this.cbbBisMake.Cursor = Cursors.Hand;
			this.cbbBisMake.FormattingEnabled = true;
			this.cbbBisMake.Location = new Point(6, 76);
			this.cbbBisMake.Name = "cbbBisMake";
			this.cbbBisMake.Size = new Size(426, 23);
			this.cbbBisMake.TabIndex = 2;
			this.cbbBisImport.Cursor = Cursors.Hand;
			this.cbbBisImport.FormattingEnabled = true;
			this.cbbBisImport.Location = new Point(6, 128);
			this.cbbBisImport.Name = "cbbBisImport";
			this.cbbBisImport.Size = new Size(426, 23);
			this.cbbBisImport.TabIndex = 3;
			this.label4.BackColor = SystemColors.ControlLight;
			this.label4.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.label4.Location = new Point(6, 108);
			this.label4.Name = "label4";
			this.label4.Size = new Size(426, 20);
			this.label4.TabIndex = 6;
			this.label4.Text = "Đơn vị đăng ký nhập khẩu";
			this.label4.TextAlign = ContentAlignment.MiddleCenter;
			this.btnSave.Cursor = Cursors.Hand;
			this.btnSave.FlatAppearance.BorderColor = Color.FromArgb(255, 128, 255);
			this.btnSave.FlatStyle = FlatStyle.Flat;
			this.btnSave.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnSave.Location = new Point(250, 157);
			this.btnSave.Name = "btnSave";
			this.btnSave.Size = new Size(90, 26);
			this.btnSave.TabIndex = 4;
			this.btnSave.Text = "Ghi nhận";
			this.btnSave.UseVisualStyleBackColor = true;
			this.btnSave.Click += new EventHandler(this.btnSave_Click);
			this.btnClose.Cursor = Cursors.Hand;
			this.btnClose.FlatAppearance.BorderColor = Color.FromArgb(255, 128, 255);
			this.btnClose.FlatStyle = FlatStyle.Flat;
			this.btnClose.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnClose.Location = new Point(342, 157);
			this.btnClose.Name = "btnClose";
			this.btnClose.Size = new Size(90, 26);
			this.btnClose.TabIndex = 5;
			this.btnClose.Text = "Thoát [ ESC ]";
			this.btnClose.UseVisualStyleBackColor = true;
			this.btnClose.Click += new EventHandler(this.btnClose_Click);
			base.AutoScaleDimensions = new SizeF(7f, 15f);
			//base.AutoScaleMode = AutoScaleMode.Font;
			this.BackColor = Color.White;
			base.ClientSize = new Size(437, 188);
			base.ControlBox = false;
			base.Controls.Add(this.btnClose);
			base.Controls.Add(this.btnSave);
			base.Controls.Add(this.cbbBisImport);
			base.Controls.Add(this.label4);
			base.Controls.Add(this.cbbBisMake);
			base.Controls.Add(this.label3);
			base.Controls.Add(this.txtControl);
			base.Controls.Add(this.label2);
			base.Controls.Add(this.txtRegisters);
			base.Controls.Add(this.label1);
			this.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 163);
			//base.FormBorderStyle = FormBorderStyle.FixedToolWindow;
			base.KeyPreview = true;
			this.MaximumSize = new Size(439, 190);
			this.MinimumSize = new Size(439, 190);
			base.Name = "frmInputMoreInfo";
			base.ShowInTaskbar = false;
			base.StartPosition = FormStartPosition.Manual;
			base.Load += new EventHandler(this.frmInputMoreInfo_Load);
			base.ResumeLayout(false);
			base.PerformLayout();
		}
		public frmInputMoreInfo()
		{
			this.InitializeComponent();
		}
		private void btnClose_Click(object sender, EventArgs e)
		{
			this.hasModife = false;
			base.Close();
		}
		private void frmInputMoreInfo_Load(object sender, EventArgs e)
		{
			this.objFunc.LoadComboBox("SELECT Man_ID, Man_Name FROM TabManufacture ORDER BY OrderBy", this.cbbBisMake, "Man_ID", "Man_Name");
			this.cbbBisImport.DataSource = Program.dsBisImpoter.Tables[0];
			this.cbbBisImport.ValueMember = "ID";
			this.cbbBisImport.DisplayMember = "Name";
			this.cbbBisImport.SelectedIndex = 0;
		}
		private void btnSave_Click(object sender, EventArgs e)
		{
			this.hasModife = true;
			base.Close();
		}
	}
}
